// CopyableArray.h: interface for the CCopyableArray class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COPYABLEARRAY_H__936B7F0F_0C2C_4D67_81D3_7619771354EC__INCLUDED_)
#define AFX_COPYABLEARRAY_H__936B7F0F_0C2C_4D67_81D3_7619771354EC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#pragma warning(disable:4786)
#include <afxtempl.h>

template<class TYPE, class ARG_TYPE>
class CCopyableArray : public CArray<TYPE,ARG_TYPE>
{
public:
	const CCopyableArray<TYPE,ARG_TYPE> & operator = (const CArray<TYPE,ARG_TYPE> &array)
	{
		RemoveAll();
		for (int i= 0; i < array.GetSize(); i++)
		{
			Add( array[i] );
		}
	return (*this);
	}
};

#endif // !defined(AFX_COPYABLEARRAY_H__936B7F0F_0C2C_4D67_81D3_7619771354EC__INCLUDED_)
